<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include::header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>   </h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<div class="form-group">
							<label class="col-sm-3 control-label">公众号名称：</label>
							<div class="col-sm-8">
								<input id="title" name="title" class="form-control" type="text"
									>
							</div>
							<label class="col-sm-3 control-label">appId：</label>
							<div class="col-sm-8">
								<input id="appid" name="appid" class="form-control" type="text"
									>
							</div>
							
							<label class="col-sm-3 control-label">appSecret：</label>
							<div class="col-sm-8">
								<input id="appsecret" name="appsecret" class="form-control" type="text"
									>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">关联用户</label>
							<input id="adminId" name="adminId" class="form-control"
									type="hidden"  >
					                   <button type="button" id="test2" onclick="addUser()" class="btn btn-primary fachoose" data-input-id="c-smallimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择用户</button>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">用户</label>
							<span id="userName" ></span>
						</div>
						<div class="text-right form-group">
								<a class="btn btn-default waves-effect waves-light"
									onclick="returnList()">返回列表</a>
								<button type="button"
									class="btn btn-primary waves-effect waves-light"
									onclick="save()">保存</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/config/gzhAdd.js"></script>
	<script src="/js/layui.js"></script>
	<script src="/js/plugins/layer/layer.min.js"></script>
	
	<script type="text/javascript">
    function setUserId(url,userName) {
    	$("#adminId").val("");
        $("#adminId").val(url);
        $("#userName").html("");
        $("#userName").html(userName);
    }
    function addUser() {
    	parent.layer.open({
    		type : 2,
    		title : '编辑',
    		maxmin : true,
    		shadeClose : false, // 点击遮罩关闭层
    		area : [ '900px', '650px' ],
    		content : '/config/user' // iframe的url
    	});
    }
</script>
</body>

</html>
